<%--
  Created by IntelliJ IDEA.
  User: SYHT
  Date: 2017/4/10
  Time: 14:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <title>登录</title>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/dist/foreEnd/css/demo.css"/>
    <link href="${pageContext.request.contextPath}/dist/foreEnd/css/font-awesome.min.css" rel="stylesheet"/>
    <script type="text/javascript">
        window.onload = function () {
            var oForm = document.getElementById('form-control');
            var aLabel = oForm.getElementsByTagName('label');
            var aInput = oForm.getElementsByTagName('input');
            for (var i = 0; i < aLabel.length; i++) {
                aInput[i].index = i;
                aLabel[i].onclick = function () {
                    for (var i = 0; i < aLabel.length; i++) {
                        aLabel[i].className = '';
                    }
                    this.className = 'active';
                };
                aInput[i].onclick = function () {
                    for (var i = 0; i < aLabel.length; i++) {
                        aLabel[i].className = '';
                    }
                    aLabel[this.index].className = 'active';
                }
            }
            if(${param.relogin=="go"}){
                var msg = document.getElementById("loginMsg");
                msg.innerHTML = "登陆失效，请重新登陆";
            }
        }
    </script>
</head>
<body>
<div class="page">
    <header id="header">
        <hgrounp class="white">
            <h1></h1>
            <h2></h2>
        </hgrounp>
    </header>
    <section class="demo">
        <div class="login" class="clearfix">
            <h2>登录</h2>
            <form method="post" action="${pageContext.request.contextPath}/Login/login.do" id="form-control">
                <div class="control-round1" id="control-round1">
                    <label for="name" class="active">1</label>
                    <label for="password">2</label>
                </div>
                <div class="control-group">
                    <span class="hid" id="loginMsg">${msg}</span>
                    <input type="text" name="username" id="name" placeholder="用户名*" autocomplete="off">
                </div>
                <div class="control-group">
                    <input type="password" name="password" id="password" placeholder="密码*" autocomplete="off">
                </div>
                <div class="form-actions">
                    <button class="btn" type="submit">登录</button>
                    <!--<a href="register.html"><button class="btn" type="button">注册</button></a>-->
                </div>
            </form>
        </div>
    </section>
</div>
<div style="text-align:center;clear:both">
</div>
</body>
</html>